pathlib get list of files

177

pathlib get list of files -

for path in pathlib.Path(".").iterdir():
    if path.is_file():
        print(path)

Comments

Submit
0 Comments